// 日常支出
import fetch from '@/config/fetch'

// 日常支出列表
export const listExpend = data => fetch('/expenditure/expenditure_list/', data);
// 查看日常支出详情
export const infoExpend = (id, data) => fetch("/expenditure/"+ id +"/expenditure_single/", data);
// 日常支出新增
export const addExpend = data => fetch('/expenditure/expenditure_add/', data, 'POST');
// 日常支出编辑
export const editExpend = (id, data) => fetch("/expenditure/"+ id +"/expenditure_update/", data, 'PUT');
// 日常支出删除
export const removeExpend = (id, data) => fetch("/expenditure/"+ id +"/expenditure_del/", data, 'DELETE');
// 批量删除日常支出
export const removeBatchExpend = data => fetch('/expenditure/expenditure_batch_del/', data, 'POST');

// 日常支出分类列表
export const listExpendCategory = data => fetch('/expenditure_category/category_list/', data);
// 查看日常支出分类详情
export const infoExpendCategory = (id, data) => fetch("/expenditure_category/"+ id +"/category_single/", data);
// 日常支出分类新增
export const addExpendCategory = data => fetch('/expenditure_category/category_add/', data, 'POST');
// 日常支出分类编辑
export const editExpendCategory = (id, data) => fetch("/expenditure_category/"+ id +"/category_update/", data, 'PUT');
// 日常支出分类删除
export const removeExpendCategory = (id, data) => fetch("/expenditure_category/"+ id +"/category_del/", data, 'DELETE');